<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
        <login></login>
        <login>我的朋友</login>
    </div>
  </body>
</html>
<script src="../../js/vue.js"></script>
<script>
  const login = {
    template: `<h1>登录成功！<slot></slot></h1>`,
  };
  new Vue({
    el: "#app",
    data: {
      message: "Hello Vue!",
    },
    components: {
        login
    },
  });
</script>
